package cn.stylefeng.guns.sys.modular.metadataFieldsDetail.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.metadataFieldsDetail.entity.MetadataDetail;
import cn.stylefeng.guns.sys.modular.metadataFieldsDetail.model.params.MetadataDetailParam;
import cn.stylefeng.guns.sys.modular.metadataFieldsDetail.model.result.MetadataDetailResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 元数据详情表 服务类
 * </p>
 *
 * @author author
 * @since 2020-11-17
 */
public interface MetadataDetailService extends IService<MetadataDetail> {

    /**
     * 新增
     *
     * @author author
     * @Date 2020-11-17
     */
    void add(MetadataDetailParam param);

    /**
     * 删除
     *
     * @author author
     * @Date 2020-11-17
     */
    void delete(MetadataDetailParam param);

    /**
     * 更新
     *
     * @author author
     * @Date 2020-11-17
     */
    void update(MetadataDetailParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author author
     * @Date 2020-11-17
     */
    MetadataDetailResult findBySpec(MetadataDetailParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author author
     * @Date 2020-11-17
     */
    List<MetadataDetailResult> findListBySpec(MetadataDetailParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author author
     * @Date 2020-11-17
     */
    LayuiPageInfo findPageBySpec(MetadataDetailParam param);


    /**
     * 逻辑删除
     *
     * @param id
     * @return
     */
    int deleteMetadataDetailInfo(Integer id);

}
